package com.merry.spring5.reflex.ioc.test;

import com.merry.spring5.reflex.ioc.annotation.Bean;
import com.merry.spring5.reflex.ioc.annotation.DI;

@Bean
public class Water {

    @DI("tissue")
    private WaterTissue waterTissue;

    public WaterTissue getWaterTissue() {
        return waterTissue;
    }

    public void setWaterTissue(WaterTissue waterTissue) {
        this.waterTissue = waterTissue;
    }

    public void water(){
        System.out.println("water...");
    }
}
